$(function(){
	parent.IndexPage.toggleLocker('close'); // 沉浸式体验
});

var DevProjectPage = {
	'findByCondition': function() {
		pagination.refresh();
	},
	'update': function(item, e, rowNumber) {
		var id = item.id;
		MsgBox.open("updateProj", "修改项目", ctx + '/datum/devProj/update/' + id + '/index', '465px');
	},
	'delete': function(item, e, rowNumber) {
		MsgBox.confirm("确认项目【" + item.cnProjectName + "】吗，这将删除该项目及该项目所有的表信息？", null, function() {
			deleteByIdAjax.tempUrl(function(url) {
				return url + '/' + item.id;
			}).send();
		});
	},
	'add': function() {
		MsgBox.open("addProj", "新增项目", ctx + '/datum/devProj/add/index', '465px');
	},
	'deleteSucc': function(data, status, xhr) {
		$.messager.info(data.message);
		datatable.refresh();
	},
	// 导出表结构-excel
	'export':function(item, e, rowNumber) {
		
	}
};